﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" x:Name="Receipt" x:Class="SilverlightApplication4.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="471" d:DesignWidth="892">

    <Grid x:Name="LayoutRoot" Background="White" Margin="0,0,-15,-23" Height="494" VerticalAlignment="Top">
        <Popup x:Name="SearchPopup" Width="300" Height="200"/>
        <StackPanel x:Name="spToolbar" HorizontalAlignment="Left" Height="30" VerticalAlignment="Top" Width="907" Orientation="Horizontal" Background="#FF000066">
            <sdk:Label Content="Phiếu nhập kho" Height="28" Width="187" Margin="20,1,0,1" Foreground="#FFF7F1F1" FontWeight="Bold" FontSize="20"/>
            <sdk:Label Height="28" Width="120"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="24" Margin="0,35,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" RenderTransformOrigin="0.017,0.5" Margin="15,0,0,0" Content="Mã chứng từ"/>
            <TextBox x:Name="NoTextBox" TextWrapping="Wrap" Width="120" Tag="|ID|PHIEU_NHAP|||||F1:THÊM MỚI - F2:XÓA - F12:TRUY XUẤT" Height="24" VerticalAlignment="Top" TabIndex="0" />
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="24" Margin="0,64,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" Margin="15,0,0,0" Content="Loại chứng từ"/>
            <ComboBox Width="120" Tag="|LoaiPhieu|PHIEU_NHAP|RefID|Ten|ID,Ten|Loại phiếu nhập|F12:TRUY XUẤT" TabIndex="2"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="24" Margin="0,93,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" Margin="15,0,0,0" Content="NV mua hàng"/>
            <TextBox Tag="|NVMuaHang|PHIEU_NHAP|ID|ID|ID,HoTen|CA_NHAN|F12:TRUY XUẤT|TenNVMuaHang" TextWrapping="Wrap" Width="120" TabIndex="3"/>
            <TextBox x:Name="TenNVMuaHang" TextWrapping="Wrap" Width="197" IsReadOnly="True" Margin="2,0,0,0" IsTabStop="False"/>
            <sdk:Label Width="77" Margin="15,0,0,0" Content="Ngày lập"/>
            <sdk:DatePicker Width="120" Tag="|NgayLapPhieu|Phieu_Nhap|" TabIndex="4" IsTabStop="True"/>
            <sdk:Label Width="61" Content="Kho" Margin="15,0,0,0"/>
            <ComboBox Width="120" Tag="|Kho|PHIEU_NHAP|RefID|Ten|ID,Ten|Kho|F12:TRUY XUẤT" TabIndex="5"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="42" Margin="0,122,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" Content="Diễn giải" Margin="15,0,0,0"/>
            <TextBox AcceptsReturn="True" TextWrapping="Wrap" Width="725" Tag="|DienGiai|Phieu_Nhap" TabIndex="6"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="24" Margin="0,169,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" Content="Khách hàng" Margin="15,0,0,0"/>
            <TextBox Tag="|KhachHang|PHIEU_NHAP|ID|ID|ID,TenCongTy|CONG_TY|F12:TRUY XUẤT|TenKhachHang" TextWrapping="Wrap" Width="120" TabIndex="7"/>
            <TextBox x:Name="TenKhachHang" TextWrapping="Wrap"  Width="198" Margin="2,0,0,0" IsTabStop="False"/>
            <sdk:Label Width="78" Margin="15,0,0,0" Content="Địa chỉ"/>
            <TextBox TextWrapping="Wrap" Width="311" TabIndex="8"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="24" Margin="0,198,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" Margin="15,0,0,0" Content="Người đại diện"/>
            <TextBox Tag="|NguoiDaiDien|PHIEU_NHAP|ID|ID|ID,HoTen|CA_NHAN|F12:TRUY XUẤT|TenNguoiDaiDien" TextWrapping="Wrap" Width="120" TabIndex="9"/>
            <TextBox x:Name="TenNguoiDaiDien" TextWrapping="Wrap" Width="197" Margin="2,0,0,0" IsTabStop="False"/>
            <sdk:Label Width="79" Margin="15,0,0,0" Content="Điện thoại"/>
            <TextBox TextWrapping="Wrap" Width="93" TabIndex="10"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Height="24" Margin="0,227,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label Width="120" Margin="15,0,0,0" Content="Phương thức TT"/>
            <ComboBox Width="120" Tag="|LoaiPhieu|PHIEU_NHAP|RefID|Ten|ID,Ten|Phương thức thanh toán|F12:TRUY XUẤT" TabIndex="11"/>
            <sdk:Label Width="196" Content=""/>
            <sdk:Label Width="80" Margin="17,0,0,0" Content="Thời hạn TT"/>
            <TextBox TextWrapping="Wrap" Width="93" Tag="|ThoiHanTT|PHIEU_NHAP|" TabIndex="12"/>
            <sdk:Label Width="120" Content="ngày" Margin="5,0,0,0"/>
        </StackPanel>
        <StackPanel HorizontalAlignment="Left" Height="200" Margin="0,256,0,0" VerticalAlignment="Top" Width="907">
            <sdk:DataGrid x:Name="ItemGrid" Tag="STT,STT|HangHoa,Mã hàng|TenHangHoaVI,Tên hàng hóa|QuyCach,Quy cách|SoLuong,Số lượng|Dvt,Dvt|DonGia,Đơn giá|ThanhTien,Thành tiền" Height="195" Margin="15,0,49,0" TabIndex="13">
                
            </sdk:DataGrid>
        </StackPanel>
        <StackPanel x:Name="spTooltip" Orientation="Horizontal" Background="#FF000066" HorizontalAlignment="Left" Height="38" Margin="0,456,0,0" VerticalAlignment="Top" Width="907">
            <sdk:Label x:Name="LabelTip" Width="766" Margin="20,0,0,0" Foreground="Yellow" FontSize="18"/>
        </StackPanel>
    </Grid>
</UserControl>
